package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import com.itheima.health.vo.Date_MemberCount;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

public interface MemberDao {

    Member getMemberByPhone(@Param("telephone")String telephone);

    void addMember(@Param("member") Member member);

    void updateMember(@Param("member") Member member);

    Integer countMemberByDate(Date date);

    List<Date_MemberCount> memberCountByMonth();

    Integer getTodayNewMember();

    Integer getThisWeekNewMember();

    Integer getThisMonthNewMember();

    Integer getTotalMember();


}
